package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierDao {
    List<Supplier> getSupplierList(@Param("page") Integer page, @Param("rows") Integer rows,@Param("supplierName") String supplierName);

    Supplier getSupplierById(@Param("supplierId") Integer supplierId);


    void updateSupplier(@Param("supplierId") Integer supplierId, @Param("supplierName") String supplierName, @Param("contacts") String contacts, @Param("phoneNumber") String phoneNumber, @Param("address") String address, @Param("remarks") String remarks);

    void saveSupplier(@Param("supplierName") String supplierName, @Param("contacts") String contacts, @Param("phoneNumber") String phoneNumber, @Param("address") String address, @Param("remarks") String remarks);

    void deleteById( List<String> ids);
}
